package com.llt.springcloud.pojo;

import java.io.Serializable;
//分布式必须序列化
//链式写法
public class Dept implements Serializable {
    private Long deptno;
    private String dname;
    //对于微服务 一个服务对应一个数据库
    private String db_source;

    public Dept(String dname) {
        this.dname = dname;
    }

    public Dept() {
    }

    public Long getDeptno() {
        return deptno;
    }

    public Dept setDeptno(Long deptno) {
        this.deptno = deptno;
        return this;
    }

    public String getDname() {
        return dname;
    }

    public Dept setDname(String dname) {
        this.dname = dname;
        return this;
    }

    public String getDb_source() {
        return db_source;
    }

    public Dept setDb_source(String db_source) {
        this.db_source = db_source;
        return this;
    }
}
